<#if parameters.page??>
<#assign page = parameters.page>
<#if parameters.pageRange??>
<#assign pageRange = parameters.pageRange>
<#if parameters.param??>
	<#assign param=parameters.param>
</#if>
<#assign pageBtw=5>
				<div id="page" class="pg" style="align:center">
					<script>
						function go(page){
							if(page<1)
								page=1;
							if(page>${page.totalPageCount})
								page=${page.totalPageCount};
							var param="";
							<#if param?exists>
								param="?${param}&";
							<#else>
								param="?";
							</#if>
							window.location.href=param+"currentPage="+page;
						}
						function goPage(){
							var value=$('#toPage').val();
							if(!(/^\d+$/.test(value))){
								alert("只能输入数字");
								return;
							}
							if(value>${page.totalPageCount}){
								value=${page.totalPageCount};
							}
							if(value<1)
								value=1;
							go(value);
						}
					</script>
						<#if page?exists>
							<#if page.totalPageCount lte pageBtw>
								<#if page.totalPageCount gt 0>
									<#list 1..page.totalPageCount as a>
										<#if page.currentPageNo==a>
											<a href="javascript:go(${a});" class="minibutton" style="padding:0px 1px;margin:0px 1px;width:28px;"><span>${a}</span></a>
										<#else>
											<a href="javascript:go(${a});" class="sliverbutton" style="padding:0px 1px;margin:0px 1px;width:28px;"><span>${a}</span></a>
										</#if>
										
									</#list>
								</#if>
							<#else>
								<#if page.currentPageNo%pageBtw==0>
									<#assign a=page.currentPageNo-pageBtw+1 >
								<#else>
									<#assign a=page.currentPageNo-page.currentPageNo%pageBtw+1 >
								</#if>
								<#if a-pageBtw gt 0>
									<a href="javascript:go(${page.currentPageNo-1});" class="sliverbutton" style="width:28px;"><span>&lt;</span></a>
								</#if>
								<#assign last=a+pageBtw-1>
								<#if last gt page.totalPageCount>
									<#assign last= page.totalPageCount>
								</#if>
								<#list a..last as aa>
									<#if page.currentPageNo==aa>
										<a href="javascript:go(${aa});" class="minibutton" style="padding:0px 1px;margin:0px 1px;width:28px;"><span><b>${aa}</b></span></a>
									<#else>
										<a href="javascript:go(${aa});" class="sliverbutton" style="padding:0px 1px;margin:0px 1px;width:28px;"><span>${aa}</span></a>
									</#if>
								</#list>
								<#if a+pageBtw lte page.totalPageCount>
									<a href="javascript:go(${page.currentPageNo+1});" class="sliverbutton" style="width:28px;"><span>&gt;</span></a>
								</#if>
								转到<input class="inputText" type="text" id="toPage" name="" value="" style="width:20px;margin:0 2px;"/>页
									<a class="minibutton" href="javascript:goPage();"><span>确定</span></a>
							</#if>
							共 ${page.totalPageCount} 页
						</#if>
						</div>

  </#if>
 </#if>
